<?php
use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/sysmsg',
    'namespace' => 'Frieza\\Modules\\Sysmsg\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('/index', 'SysmsgController@index');
    $router->delete('/index/{id}', 'SysmsgController@delete');
    // sysmsg template
    $router->get('/SysmsgTemplate', 'SysmsgTemplateController@index');
    $router->get('/SysmsgTemplate/create', 'SysmsgTemplateController@edit');
    $router->get('/SysmsgTemplate/{id}/edit', 'SysmsgTemplateController@edit');
    $router->post('/SysmsgTemplate/save', 'SysmsgTemplateController@editSubmit');
    //send msg
    $router->get('/msgList', 'BatchSendController@list');
    $router->get('/send', 'BatchSendController@send');
    $router->get('/view/{id}', 'BatchSendController@viewInfo');
    $router->post('/submitSend', 'BatchSendController@submitSend');
    $router->post('/cancel', 'BatchSendController@cancel');
    $router->post('/resend', 'BatchSendController@resend');
});